package com.bdqn.tour.pojo;

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Map;

public class Ticket {
    private String id;
    private String type;//出行类型
    private String ticketType;//车票类型
    private String departureCity;
    private String arrivalCity;
    private LocalDate departureDate;
    private LocalTime startTime;
    private LocalTime endTime;
    private double price;
    private boolean hasInfantOption;
    private boolean hasChildOption;
    private LocalDate returnDate;

    // 构造函数
    public Ticket(String id,String type, String ticketType, String departureCity, String arrivalCity, LocalDate departureDate,
                  LocalTime startTime, LocalTime endTime, double price, boolean hasInfantOption, boolean hasChildOption) {
        this.id = id;
        this.type=type;
        this.ticketType = ticketType;
        this.departureCity = departureCity;
        this.arrivalCity = arrivalCity;
        this.departureDate = departureDate;
        this.startTime = startTime;
        this.endTime = endTime;
        this.price = price;
        this.hasInfantOption = hasInfantOption;
        this.hasChildOption = hasChildOption;
    }

    public Ticket() {

    }

    public String getTicketType() {
        return ticketType;
    }

    public void setTicketType(String ticketType) {
        this.ticketType = ticketType;
    }

    // Getter 和 Setter 方法
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }

    public String getDepartureCity() {
        return departureCity;
    }

    public void setDepartureCity(String departureCity) {
        this.departureCity = departureCity;
    }

    public String getArrivalCity() {
        return arrivalCity;
    }

    public void setArrivalCity(String arrivalCity) {
        this.arrivalCity = arrivalCity;
    }

    public LocalDate getDepartureDate() {
        return departureDate;
    }

    public void setDepartureDate(LocalDate departureDate) {
        this.departureDate = departureDate;
    }

    public LocalTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalTime startTime) {
        this.startTime = startTime;
    }

    public LocalTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalTime endTime) {
        this.endTime = endTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public boolean isHasInfantOption() {
        return hasInfantOption;
    }

    public void setHasInfantOption(boolean hasInfantOption) {
        this.hasInfantOption = hasInfantOption;
    }

    public boolean isHasChildOption() {
        return hasChildOption;
    }

    public void setHasChildOption(boolean hasChildOption) {
        this.hasChildOption = hasChildOption;
    }

    public LocalDate getReturnDate() {
        return returnDate;
    }

    public void setReturnDate(LocalDate returnDate) {
        this.returnDate = returnDate;
    }

}
